package com.margo.project.web.mvcconfig.viewresolver;

import java.util.Locale;

import org.springframework.web.servlet.View;
import org.springframework.web.servlet.ViewResolver;

public class MargoViewResolver implements ViewResolver {

	@Override
	public View resolveViewName(String viewName, Locale locale) throws Exception {
		if("margo".equals(viewName)) {
			return new MargoView();
		}
		return null;
		
	}

}
